layui.use(['jquery', 'ligutil'], function () {
    var $ = layui.jquery
        ,ligutil = layui.ligutil;

    ligutil.table({
            elem: '.lig-table'
            , toolbar: '#tableToolbar'
            , url: '/uc/role/page' // 数据接口
            , height: 350
            , skin: 'line'
            , cols: [[ // 表头
                {type: 'checkbox'}
                , {title: '操作', toolbar: '#rowBar', align: 'left', width: 100}
                , {field: 'roleName', title: '角色名称', align: 'left', minWidth: 80}
                , {field: 'roleCode', title: '角色编码', align: 'left', minWidth: 80}
                , {field: 'remark', title: '备注', align: 'left', minWidth: 80}
            ]]
        }
        , {
            primaryField: 'roleId'

            , addContent: $('#entityadd').html()
            , addUrl: '/uc/role/add'
            , addTitle: '新增角色'
            , addHeight: 300

            , modifyContent: $('#entitymodify').html()
            , modifyUrl: '/uc/role/modify'
            , modifyTitle: '编辑角色'
            , modifyHeight: 300

            , removeUrl: '/uc/role/remove'
            , getUrl: '/uc/role/get'

        });

});